package com.hd.entity.personaloffice;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: hzhh123
 * @Date: 2018/12/24 22:38
 * 工作评论:工作计划|工作日报|周报|月报
 */
@Entity
@Table(name = "office_work_comment_opinion")
public class WorkCommentOpinion implements Serializable {
    public static final String WORK_PLAN="work_plan";//工作计划
    public static final String WORK_SUMMARY="work_summary";//工作汇报
    public static final String WORK_COMMENT_OPINION="work_comment_opinion";//工作评论

    @Id
    private String id;
    /**
     * 评论人
     */
    private String commentator;
    @Transient
    private String commentatorName;
    /**
     * 评论意见
     */
    private String opinion;
    /**
     * 评论时间
     */
    @Column(name = "comment_time")
    @Temporal(TemporalType.TIMESTAMP)
    private Date commentTime;

    /**
     * 关联外键ID
     */
    @Column(name = "obj_id")
    private String objId;
    /**
     * 类型
     */
    @Column(name = "type")
    private String type;
    /**
     * 最近一次修改时间
     */
    @Column(name = "last_update_time")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastUpdateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCommentator() {
        return commentator;
    }

    public void setCommentator(String commentator) {
        this.commentator = commentator;
    }

    public String getCommentatorName() {
        return commentatorName;
    }

    public void setCommentatorName(String commentatorName) {
        this.commentatorName = commentatorName;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    public Date getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(Date commentTime) {
        this.commentTime = commentTime;
    }



    public String getObjId() {
        return objId;
    }

    public void setObjId(String objId) {
        this.objId = objId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }


}
